//
//  CarnivalsTableDataViewController.h
//  PartyAnimal
//
//  Created by Hilary Muludiang on 3/12/12.
//  Copyright 2012 Versatile Systems, Inc. All rights reserved.
//

//Ad banners: http://www.raywenderlich.com/1371/how-to-integrate-iad-into-your-iphone-app

#import <UIKit/UIKit.h>


@class CarnivalsCategoriesTableDataViewController;

@interface CarnivalsTableDataViewController : UIViewController <UITableViewDelegate, UITableViewDataSource> {
	IBOutlet UITableView *carnivalsTableDataView;
	NSMutableArray *carnivalsTableData;
	NSString *passedValue;
	CarnivalsCategoriesTableDataViewController *carnivalCategoriesTableDataViewController;
	
	UIView *contentView;
	
}

@property(nonatomic,retain) IBOutlet UITableView *carnivalsTableDataView;
@property(nonatomic,retain) NSMutableArray *carnivalsTableData;
@property(nonatomic,retain) NSString *passedValue;
@property(nonatomic,retain) IBOutlet CarnivalsCategoriesTableDataViewController *carnivalsCategoriesTableDataViewController;

@property (nonatomic,retain) IBOutlet UIView *contentView;

-(void)buildTable;
-(void)getYearsData;
-(void)getCitiesData;
-(IBAction)switchViews:(UIBarButtonItem *)sender;
-(IBAction)addCarnival:(UIBarButtonItem *)sender;
-(void)hideBanner:(UIInterfaceOrientation)toInterfaceOrientation;

@end
